package com.xxx.springboot.pojo.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * 3. 【redis延时队列】redis延时队列任务实现类枚举
 */
@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum RedisDelayQueueEnum {

    ORDER_PAYMENT_TIMEOUT("ORDER_PAYMENT_TIMEOUT", "订单支付超时，自动取消订单", "orderPaymentTimeout"),
    ORDER_NOT_EVALUATED_TIMEOUT("ORDER_NOT_EVALUATED_TIMEOUT", "订单超时未评价，系统默认好评", "orderNotEvaluatedTimeout");

    // 延时队列 redis key
    private String queueName;

    // 延时队列 redis key描述
    private String queueDesc;

    // 执行延时队列具体业务的实现类bean的id
    private String beanId;

}
